package cn.itsource.system.domain;

import java.io.Serializable;
import java.util.Date;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName operation_logs
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OperationLogs implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private Integer userId;

    /**
     * 
     */
    private String operationObject;

    /**
     * 
     */
    private String operationType;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date operationTime;

    private static final long serialVersionUID = 1L;


    public OperationLogs(Integer userId, String operationObject, String operationType) {
        this.userId = userId;
        this.operationObject = operationObject;
        this.operationType = operationType;
    }
}